<%--
  Created by IntelliJ IDEA.
  User: Crush
  Date: 2022/4/26
  Time: 9:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page isELIgnored="false" %>
<html>
<head>
    <title>用户详情</title>
    <style type="text/css">
        .div1{
            position: absolute;
            margin: 0 auto;
        }
    </style>
</head>
<body>
<div class="div1">
    <div class="div2">
            <table class="form">
                <tr>
                    <td class="field">用户名：</td>
                    <td><input type="text" class="text" name="userName" value="${user.uname}" readonly="readonly" /></td>
                </tr>
                <tr>
                    <td class="field">姓名：</td>
                    <td><input type="text" class="text" name="uname" value="${user.uname}" /></td>
                </tr>
                <tr>
                    <td class="field">密码：</td>
                    <td><input type="text" class="text" name="upass" value="${user.upass}" /></td>
                </tr>
                <tr>
                    <td class="field">性别：</td>
                    <td>
                        <c:if test="${user.sex=='男'}">
                            <input type="radio" name="sex" value="男"  checked="checked"/>男
                            <input type="radio" name="sex" value="女" />女
                        </c:if>
                        <c:if test="${user.sex=='女'}">
                            <input type="radio" name="sex" value="男"  />男
                            <input type="radio" name="sex" value="女" checked="checked"/>女
                        </c:if>
                        <c:if test="${user.sex==null}">
                            <input type="radio" name="sex" value="男"  />男
                            <input type="radio" name="sex" value="女" />女
                        </c:if>

                    </td>
                </tr>
                <tr>
                    <td class="field">出生日期：</td>
                    <td>
                        <input type="date" name="birthday" value="<fmt:formatDate value="${user.birthday}" pattern="yyyy-MM-dd"/>"/>
                    </td>
                </tr>
                <tr>
                    <td class="field">身份证号码：</td>
                    <td><input type="text" class="text" name="identitycode" value="${user.identitycode}" /></td>
                </tr>
                <tr>
                    <td class="field">手机号码：</td>
                    <td><input type="text" class="text" name="phone" value="${user.phone}" /></td>
                </tr>
                <tr>
                    <td class="field">邮箱：</td>
                    <td><input type="text" class="text" name="email" value="${user.email}" /></td>
                </tr>
                <tr>
                    <td class="field">送货地址：</td>
                    <td><input type="text" class="text" name="address" value="${user.address}" /></td>
                </tr>
                <tr>
                    <td><a href="user-out.jsp">注销</a></td>
                </tr>
            </table>
    </div>
</div>
<div class="clear"></div>
</body>
</html>
